package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorFriendshipLink;
import guoanmaker.operator.business.model.OperatorRoundPhoto;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorFriendshipLinkServiceInterface 
 * @Description: OperatorFriendshipLinkServiceInterface
 * @date 2017/6/28
 */
public interface OperatorFriendshipLinkServiceInterface {

    /** 
    * @Title: saveFriendshipLink
    * @Description: 新增/修改 优惠劵
    * @param：OperatorRoundPhoto   
    * @return OperatorFriendshipLink    
    * @throws 
    */
    OperatorFriendshipLink saveFriendshipLink(OperatorFriendshipLink operatorFriendshipLink);

    /** 
    * @Title: getAllFriendshipLink
    * @Description: 查询所有优惠劵
    * @param：void  
    * @return List<OperatorFriendshipLink>   
    * @throws 
    */
    List<OperatorFriendshipLink> getAllFriendshipLink(String type);

    /** 
    * @Title: getAllFriendshipLinkByPage
    * @Description: 查询全部优惠劵并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorFriendshipLink>   
    * @throws 
    */
    Page<OperatorFriendshipLink> getAllFriendshipLinkByPage(Integer page, Integer size);

    /** 
    * @Title: deleteFriendshipLinkById
    * @Description: 根据Id删除优惠劵 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteFriendshipLinkById(String id);

    /** 
    * @Title: getFriendshipLinkById 
    * @Description: 根据Id查询优惠劵
    * @param： String id
    * @return OperatorFriendshipLink    
    * @throws 
    */
    OperatorFriendshipLink getFriendshipLinkById(String id);

    /** 
    * @Title: getAllFriendshipLinkByWeightAndPage
    * @Description: 按权重排序分页查询优惠劵 
     * @param：Integer page 页码  
     * @param：Integer size 条数    
    * @return Page<OperatorFriendshipLink> 
    * @throws 
    */
    Page<OperatorFriendshipLink> getAllFriendshipLinkByWeightAndPage(Integer page, Integer size);
    
    List<OperatorFriendshipLink> getAllFriendshipLinkByCityCode(String cityCode);
}
